<%--
  Created by IntelliJ IDEA.
  User: administered
  Date: 2017/12/24
  Time: 15:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"  %>
<html>
<head>
    <title>List.jsp</title>
</head>
<body>
Welcome :<shiro:principal></shiro:principal>
<h4>List.jsp</h4>
<%--shiro权限标签--%>
<shiro:hasRole name="admin">
    <a href="admin.jsp">访问Admin</a>
</shiro:hasRole>
<shiro:hasRole name="user">
    <a href="user.jsp">访问User</a>
</shiro:hasRole>
<a href="/shiro/testShiroAnnotation">testShiroAnnotation</a>
<br><br>
<a href="/shiro/logout">登出</a>
</body>
</html>
